#ifndef DBTABPRODUCT_H
#define DBTABPRODUCT_H

#include "dbtabbase.h"
class DBTabProduct:public DBTabBase
{
public:
    static DBTabProduct* getDBTab(){
        static DBTabProduct tab;
        return &tab;
    }
    static const ColumnInfo mColumnTab[];
    static const QLatin1String TAB_NAME;
    static const char* _NAME;
    static const char* _HI;
    static const char* _OK;
    static const char* _LOW;
    void createTab(QSqlDatabase &db);
    static const char *getColumnName(int index);

    enum{
        INDEX_ID,
        INDEX_NAME,
        INDEX_HI,
        INDEX_OK,
        INDEX_LOW,
        INDEX_END
    };

private:
    DBTabProduct();

    // DBTabBase interface

};

#endif // DBTABPRODUCT_H
